package main;

import java.util.Date;

import socio.Entity;
import socio.hardware.Basin;
import socio.hardware.Faucet;
import socio.hardware.Urinal;
import socio.initiative.Cook;

public class HardWareMain {
	public static void main(String[] args) throws InterruptedException {
		Cook cook = new Cook();
		cook.setIp("localhost");
		cook.setPort(3412);
		cook.setId(12345);
		cook.setName("Cook.Wang");
		
		Basin basin = new Basin();
		Faucet faucet = new Faucet();
		Urinal urinal = new Urinal();

		urinal.piss(cook, new Date());
		Thread.sleep(10);

		faucet.turnOn(cook, new Date());
		Thread.sleep(10);
		faucet.takeWater(cook, new Date());
		Thread.sleep(10);
		faucet.turnOff(cook, new Date());
		Thread.sleep(10);

		basin.wash(cook, new Entity(), new Date());
		Thread.sleep(10);
	}
}
